package cn.lxh.basic.mapper;

import cn.lxh.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    List<T> findAll();
    T findById(Long id);
    void save(T t);
    void update(T t);
    void delete(Long id);
    //页数总和
    Integer queryCount(BaseQuery query);
    //当前页的数据
    List<T> queryData(BaseQuery query);

    void batchRemove(Long[] ids);
}
